import request from "@/utils/request";
// 获取护理项目
export const getPorjectApi = (page,pageSize,name,status) =>  request.get(`/nursingProject?page=${page}&pageSize=${pageSize}&name=${name}&status=${status}`)

//新增护理项目
export const addPorjectApi = (data) =>  request.post('/nursingProject',data)

//根据ID查询护理项目信息
export const queryInfoApi = (id) => request.get(`/nursingProject/${encodeURIComponent(id)}`);

//修改护理项目信息
export const updatePorjectApi = (data) => request.put('/nursingProject', data)

//删除护理项目
export const deletePorjectApi = (id) => request.delete(`/nursingProject?id=${encodeURIComponent(id)}`);